package com.baizhi.zjs.entity;

import java.util.Date;
import java.util.List;

public class OrderEntity {
	/*d_order  (
			   id                   VARCHAR2(40)                    not null,
			   order_number         VARCHAR2(30),    --订单编号
			   order_times          DATE,            --订单时间
			   addr_user            VARCHAR2(30),    --收货人
			   addr_name            VARCHAR2(30),    --收货地址
			   total_price          NUMERIC(12, 2),  --总价
			   addr_id              VARCHAR2(40),    --地址id
			   user_id              VARCHAR2(40),    --用户id*/
	
	private String id;
	private String order_number;//订单编号
	private Date order_times;//订单时间
	private String addr_user;//收货人
	private String addr_name;//收货地址
	private Double total_price; //总价
	private String addr_id;//地址id
	private String user_id;//用户id
	private List<ItemEntity> itemss;
	public OrderEntity() {
		super();
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getOrder_number() {
		return order_number;
	}
	public void setOrder_number(String order_number) {
		this.order_number = order_number;
	}
	public Date getOrder_times() {
		return order_times;
	}
	public void setOrder_times(Date order_times) {
		this.order_times = order_times;
	}
	public String getAddr_user() {
		return addr_user;
	}
	public void setAddr_user(String addr_user) {
		this.addr_user = addr_user;
	}
	public String getAddr_name() {
		return addr_name;
	}
	public void setAddr_name(String addr_name) {
		this.addr_name = addr_name;
	}
	public Double getTotal_price() {
		return total_price;
	}
	public void setTotal_price(Double total_price) {
		this.total_price = total_price;
	}
	public String getAddr_id() {
		return addr_id;
	}
	public void setAddr_id(String addr_id) {
		this.addr_id = addr_id;
	}
	public String getUser_id() {
		return user_id;
	}
	public void setUser_id(String user_id) {
		this.user_id = user_id;
	}
	
	public List<ItemEntity> getItemss() {
		return itemss;
	}
	public void setItemss(List<ItemEntity> itemss) {
		this.itemss = itemss;
	}
	public OrderEntity(String id, String order_number, Date order_times,
			String addr_user, String addr_name, Double total_price,
			String addr_id, String user_id) {
		super();
		this.id = id;
		this.order_number = order_number;
		this.order_times = order_times;
		this.addr_user = addr_user;
		this.addr_name = addr_name;
		this.total_price = total_price;
		this.addr_id = addr_id;
		this.user_id = user_id;
	}
	/*@Override
	public String toString() {
		return "OrderEntity [id=" + id + ", order_number=" + order_number
				+ ", order_times=" + order_times + ", addr_user=" + addr_user
				+ ", addr_name=" + addr_name + ", total_price=" + total_price
				+ ", addr_id=" + addr_id + ", user_id=" + user_id + "]";
	}*/
	@Override
	public String toString() {
		return "OrderEntity [id=" + id + ", order_number=" + order_number
				+ ", order_times=" + order_times + ", addr_user=" + addr_user
				+ ", addr_name=" + addr_name + ", total_price=" + total_price
				+ ", addr_id=" + addr_id + ", user_id=" + user_id + ", itemss="
				+ itemss + "]";
	}
	
	
}
